package com.lyn.demo;

import com.jfinal.core.Controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * @author lynmonade
 * @create 2019-02-22 16:31
 */
public class ExceptionController extends Controller {
    Logger log = LoggerFactory.getLogger(ExceptionController.class);
    public void index() {
//        try {
            int i = 1/0;
//        } catch (Exception  e) {
//            log.error("在controller层拦截错误："+e.getMessage());
//            renderText("controller层系统出错");
//        }

        //renderText("结束");
    }


}
